new Vue({
  el: '#app',
  data() {
      return {
          shop: false,
          form:{
              Open_ID:'',
              User_Type:'0',
              Enterprise_Info_SerialNumber:'E00000000000016',
              page:1,
              limit:10,
          },
          total: 0,//总条数
          tableData: [],		//表格数据
          formLabelWidth: '120px',
          formInline: {
            user: '',
            region: ''
          }
      }
  },
  mounted() {
      this.getList(this.form)
  },
  methods: {
      // 分页
      handleSizeChange(val) {
          this.form.page = 1;
          this.form.limit = val;
          this.getList(this.form)
        },
      // 分页
      handleCurrentChange(val) {
          this.form.page = val;
          this.getList(this.form)
        },
      // 查询
      onSubmit(){
        this.getList()
      },        
      // 获取接口
      getList(data) {     
          let _this = this
          $.ajax({
              type: 'POST',
              url: DomainName +'/WeChatMemberBrowsing' ,
              data,
              success: function (res) {
                  _this.tableData = res.tableData;
                  _this.total = parseInt(res.limit)
                  // console.log('11111',_this.tableData)
              },
          });
      },
  },
})